package com.xiaohudie.pojo;

/**
 * @Author xiao hu die
 * @Date 2022/3/2 17:25
 * @Version 1.0
 */
public class MyThreadLocal {
    public static final ThreadLocal<User> userThreadLocal = new ThreadLocal<>();
      public static void set(User user) {
             userThreadLocal.set(user);
      }
      public static User getUser(){
          return userThreadLocal.get();
      }
      public static void removeUser(){
          userThreadLocal.remove();
      }
}
